#!/bin/bash

export DIST=dist
export FILE=dist/bio-unb

rm -Rf dist
mkdir dist
mkdir $FILE

cp -R target/lib $FILE

cp -R webapps $FILE
cp -R logs $FILE
cp web-jetty.xml $FILE
cp -R conf $FILE
cp -R services $FILE
cp target/*.jar $FILE
cp -R contexts $FILE
cp startup.sh $FILE
cd $DIST
tar czvf bio-unb.tar.gz bio-unb